#ifndef SALTNOISE_H
#define SALTNOISE_H

#include <QtGui>
#include <QtWidgets>
#include <QMainWindow>

namespace Ui
{
    class saltnoise;
}

class saltnoise : public QMainWindow
{
    Q_OBJECT

public:
    explicit saltnoise(QWidget *parent = nullptr);
    ~saltnoise();
    void closeEvent(QCloseEvent *event);

private:
    Ui::saltnoise *ui;
    void init_saltnoise();

signals:
    void sendData(double snr, int t, int code);
private slots:

    void img_preview();
    void btn_y_clicked();
    void btn_n_clicked();
};

#endif // saltnoise_H
